package orm;

import java.util.HashSet;
import java.util.Set;

/**
 * AbstractQuestion entity provides the base persistence definition of the
 * Question entity. @author MyEclipse Persistence Tools
 */

public abstract class AbstractQuestion implements java.io.Serializable {

	// Fields

	private long qid;
	private Knowledge knowledge;
	private String qtitle;
	private String qoption;
	private String qkey;
	private Integer qtype;
	private Set revises = new HashSet(0);

	// Constructors

	/** default constructor */
	public AbstractQuestion() {
	}

	/** minimal constructor */
	public AbstractQuestion(Knowledge knowledge, String qtitle) {
		this.knowledge = knowledge;
		this.qtitle = qtitle;
	}

	/** full constructor */
	public AbstractQuestion(Knowledge knowledge, String qtitle, String qoption,
			String qkey, Integer qtype, Set revises) {
		this.knowledge = knowledge;
		this.qtitle = qtitle;
		this.qoption = qoption;
		this.qkey = qkey;
		this.qtype = qtype;
		this.revises = revises;
	}

	// Property accessors

	public long getQid() {
		return this.qid;
	}

	public void setQid(long qid) {
		this.qid = qid;
	}

	public Knowledge getKnowledge() {
		return this.knowledge;
	}

	public void setKnowledge(Knowledge knowledge) {
		this.knowledge = knowledge;
	}

	public String getQtitle() {
		return this.qtitle;
	}

	public void setQtitle(String qtitle) {
		this.qtitle = qtitle;
	}

	public String getQoption() {
		return this.qoption;
	}

	public void setQoption(String qoption) {
		this.qoption = qoption;
	}

	public String getQkey() {
		return this.qkey;
	}

	public void setQkey(String qkey) {
		this.qkey = qkey;
	}

	public Integer getQtype() {
		return this.qtype;
	}

	public void setQtype(Integer qtype) {
		this.qtype = qtype;
	}

	public Set getRevises() {
		return this.revises;
	}

	public void setRevises(Set revises) {
		this.revises = revises;
	}

}